package com.example.demo.entity;

import java.sql.Date;

import javax.persistence.*;

import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author Buer
 * @update 2021/5/2/00219:44
 */
@Setter
@Getter
@ToString
@Entity
@Table(name = "activities")
@EntityListeners(AuditingEntityListener.class)
public class Activities {
    @Id
    @Column(name = "activity_id")
    private String id;
    @Column(name = "activity_name")
    private String name;
    @Column(name = "activity_site")
    private String site;
    @Column(name = "activity_integral")
    private Integer integral;
    @Column(name = "activity_peoples")
    private Integer peoples;
    @Column(name = "activity_start")
    private Date start;
    @Column(name = "activity_end")
    private Date end;
    @Column(name = "activity_contents")
    private String contents;
    @Column(name = "user_id")
    private String uid;

}
